package com.lhf.util;

/**
 * @author 尐痞猫
 * @date2021-06-23 20:47
 */
public class ResultBuliderVo {

    public static ResultVo error(String errorMessage){
        ResultVo resultVo = new ResultVo();
        resultVo.setSuccess(false);
        resultVo.setErrorMessage(errorMessage);
        return resultVo;
    }
    public static<T> ResultVo success(T t){
        ResultVo resultVo = new ResultVo();
        resultVo.setSuccess(true);
        resultVo.setData(t);
        return resultVo;
    }
}
